LabWindows/CVI SQL Toolkit for Windows Vista/XP/2000, Version 2.1
Readme File
This file contains installation and programming considerations and changes that are too recent to be included in the LabWindows/CVI SQL Toolkit Help.
Contents
Minimum System Requirements
Installing the LabWindows/CVI SQL Toolkit
Activating the LabWindows/CVI SQL Toolkit
After Installation
Distribution of an SQL Toolkit Executable or DLL
Known Issues
Bug Fixes
Minimum System Requirements
To run the LabWindows/CVI SQL Toolkit, you must have LabWindows/CVI 7.0 or later installed on your computer.
Installing the LabWindows/CVI SQL Toolkit
| Note |
When you install the LabWindows/CVI SQL Toolkit, your user account must have administrator privileges. |
Complete the following steps to install this toolkit:
- Insert the LabWindows/CVI SQL Toolkit CD into the CD drive. If the CD does not run automatically, open Windows Explorer, right-click the CD drive icon, and select AutoPlay.
- On installation startup, the National Instruments LabWindows/CVI SQL Toolkit screen appears. Click Install LabWindows/CVI SQL Toolkit.
- In the User Information panel, enter your name and organization and the serial number found on your Certificate of Ownership card. LabWindows/CVI uses this serial number when you run the NI Activation Wizard.
- Continue to follow the instructions on the screen.
Activating the LabWindows/CVI SQL Toolkit
The first time you launch LabWindows/CVI after installing the LabWindows/CVI SQL Toolkit, you are prompted to activate the toolkit. Complete the following steps to activate the LabWindows/CVI SQL Toolkit.
- Select the Automatically activate through a secure Internet connection option and click Next. Your computer must be connected to the Internet for this option to work. If you do not have Internet access on your computer, refer to the LabWindows/CVI Release Notes.
- The Serial Number option is populated with the number you entered during installation. Click Next.
- Fill in the necessary information and click Next.
- Check the option if you would like to receive a confirmation email of your activation and click Next.
- After a brief moment, you should receive a message indicating whether the LabWindows/CVI SQL Toolkit has been activated or not. Enter or verify your serial number. Click Next.
- Continue to follow the instructions on the screen.
- When you successfully activate, click Finish. LabWindows/CVI displays a window indicating when this license expires.
For more information about activation, refer to the LabWindows/CVI Release Notes.
After Installation
- You can find example programs in the following location:
- LabWindows/CVI 8.1.1 and Earlier—Examples are located in \Program Files\National Instruments\CVIx.x\sql\samples.
- LabWindows/CVI 8.5 and Later—On Windows Vista, examples are located in \Users\Public\Documents\National Instruments\CVI\samples\sql. On Windows 2000/XP, example programs are located in \Documents and Settings\All Users\Documents\National Instruments\CVI\samples\sql.
- If you plan to use the SQL Toolkit with an external compiler, a library file for the current compatible external compiler is in the Program Files\National Instruments\Shared\CVI\Extlib directory.
Distribution of an SQL Toolkit Executable or DLL
Refer to the Distributing an SQL Toolkit Executable or DLL topic in the LabWindows/CVI SQL Toolkit Help for information about distributing SQL Toolkit applications.
Known Issues
- The Microsoft Access ODBC drivers that ship with ADO 2.0 and 2.1.x incorrectly update MEMO field values with NULL for all records if the value of the first record written is not specified. A bug for this problem was reported to Microsoft. This behavior does not occur when using the Microsoft Access OLE-DB Provider.
- You must include cvi_db.h before any other LabWindows/CVI includes.
- If multiple threads in your application use this toolkit, you must call DBInit before you call any other toolkit function.
- Using the LabWindows/CVI SQL Toolkit in multiple threads will not work when using Microsoft Access or any of the Microsoft Jet based drivers with version 3.50 or earlier because the Jet components are not multithread safe.
- Starting with LabWindows/CVI SQL Toolkit 2.0, functions that return statement or connection handles now return the error code instead of zero if the function fails. You can use DBSetBackwardCompatibility to force these functions to return 0 on failure. You also can use DBSetBackwardCompatibility to force DBColumnType to return one of the eight types supported by LabWindows/CVI SQL Toolkit 1.x instead of the actual type.
- Starting with LabWindows/CVI SQL Toolkit 2.0, the DBSources, DBDatabases, DBTables, DBIndexes, DBPrimaryKeys, and DBForeignKeys functions now return different fields. You must correct bindings for each of these functions.
- ADO cannot close a statement if there are unsaved changes to a record. You can call DBCancelRecordChanges to cancel the changes. The most common use of DBCancelRecordChanges is to cancel changes when DBPutRecord fails.
- Some ODBC drivers update all identical records when you change one record. This action occurs when the driver does not support the features required for positioned updates and must use a query based update.
- In some cases where ADO 2.0 returned the empty string "", ADO 2.1.x and ADO 2.5 return NULL. This change is common in attribute functions such as DBGetStatementAttribute and DBGetConnectionAttribute.
- If you delete the last record in a recordset, ADO 2.0 and 2.5 position the cursor at EOF. ADO 2.1.x positions the cursor on the last undeleted record. If you delete the last record within a fetch loop, 2.1.x fetches the last undeleted record again the next time through the loop.
- Some ADO providers and ODBC drivers allow you to fetch deleted records in the current recordset until you close the recordset. Because ADO 2.1.x sets the cursor to the previous undeleted record when you delete a record, a fetch loop that finds and deletes record can attempt to delete a deleted record and cause an error.
- ODBC drivers are not required to support the command timeout attribute. When you attempt to set the timeout attribute, ADO 2.0 ignores the error, but ADO 2.1.x and 2.5 report an unknown error.
- For Access Users—The Access ODBC driver and Access OLE/DB provider, also called the Jet OLE/DB provider, are available from Microsoft. The Access OLE/DB provider provides faster performance.
- For Btrieve Users—The Btrieve driver might experience problems if the Btrieve Microkernal Engine communication buffer size is smaller than the Btrieve driver Array Size attribute. You can increase the communication buffer size with the BTI Database Setup Utility. You can decrease the array size option when you configure a data source using the ODBC Btrieve Setup dialog or when passing a connection string.
- For INFORMIX Users—Some INFORMIX error messages may contain more than one error. It is unclear whether all errors displayed will be valid.
- For INGRES Users—SQL functions may appear to hang unless the following line is present in the CONFIG.ING file: ING_SET=SET LOCKMODE SESSION WHERE READLOCK=NOLOCK
- For Text Users—When encountering an invalid file, you may receive too many or duplicate errors.
Bug Fixes
The following items are the IDs and titles of the bugs fixed between the LabWindows/CVI SQL Toolkit 2.0.6 and 2.1.
| ID |
Fixed Issue |
Has Run-Time Impact? |
| 71104 |
The DBClosePreparedSQL function does not release the its recordset object, which prevents return value parameters from being read |
Yes |
| 63205 |
LabWindows/CVI SQL Toolkit installer installs into a hardcoded path |
No |
| 60961 |
Example database cannot be opened in Microsoft Access 2003 |
Yes |
| 36372 |
Unable to create table of data type char within an SQL server 2000 database |
Yes |
Copyright
© 1995–2008 National Instruments Corporation. All rights reserved.
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National Instruments Corporation.
Trademarks
National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on ni.com/legal for more information about National Instruments trademarks.
The mark LabWindows is used under a license from Microsoft Corporation.
Patents
For patents covering the National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your CD, or ni.com/patents.